package com.moyun.finance.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Entity
@Data
public class OrgUser {
    @Id
    private String id;

    private String companyId;//所属单位、公司id

    @Transient
    private String deptName;//部门

    @Transient
    private List<String> deptId;//部门id

    @Transient
    private String roleName;//角色

    @Transient
    private List<String> roleId;//角色id

    @Transient
    private List<OrgDept> orgDept;//部门

    @Transient
    private List<OrgRole> orgRole;//角色

    private String duty;//职务

    private String userid;//登录账号

    private String userName;//用户名

    private String userPwd;//登录密码

    private String phoneNumber;//手机号码

    private String telephone;//座机号码

    private String emailAddress;//邮箱地址

    private String headImage;//头像路径

    private String identityCard;//身份证

    private String sex;//性别

    private Date birthday;//生日

    private String address;//居住地

    private int delState;//停用状态  0:默认未停用   1:已停用
}